package controllers

import (
	"github.com/astaxie/beego"
)

type UserController struct {
	beego.Controller
}

func (c *UserController) Index() {
	c.Ctx.WriteString("用户中心")
}

func (c *UserController) Create() {
	//c.Ctx.WriteString("增加用户")
	c.TplName = "user.html"
}

func (c *UserController) Store() {
	username := c.GetString("username")
	password := c.GetString("password")
	c.Ctx.WriteString("写入新增用户 username:"+ username + ",password:" + password)
}